/**
 * 
 */
package com.acminds.fotoporter.persistence.dao;

import com.acminds.fotoporter.persistence.BaseDAO;
import com.acminds.fotoporter.persistence.dto.UserInfo;

/**
 * @author MANSUR
 *
 */
public class UserInfoDAO extends BaseDAO {

	public UserInfo findUser(String userName, String password) {
		UserInfo userInfo = (UserInfo)createNamedQuery("getUserByCredentials")
					.setParameter("userName", userName)
					.setParameter("password", password)
					.getSingleResult();
		return userInfo;
	}
}
